#ifndef SPLASH
#define SPLASH

#include "device.h"
#include "../engine/world.h"
#include "../../gui/picture.h"

namespace sleek
{
    namespace texture
    {
        class draw;
    }
    namespace core
    {
        namespace device
        {
            class Device;
            class Splash
            {
                public:
                    Splash(DeviceWindowManager = DWM_AUTO, core::math::vector2du size = core::math::vector2du(200,50), bool window_decorator = false);
                    ~Splash();

                    void setTimeToClose(int); //ms
                    void setPicture(gui::picture*);
                    gui::picture *getPicture();

                    void resizeFromPicture();
                    void resize(core::math::vector2du);

                    void render();

                    core::engine::world *mom;
                    Device *screen;
                protected:
                    int tmcl;
                    gui::picture *csp;
                    bool wait, windec;
                    math::timer *tm;
            };
        }
    }
}

#endif
